import { createStore } from 'vuex'
export default createStore({
  state: {
    users:''
  },
  getters: {
  },
  mutations: {
    setUser(state,users){
      state.users = users;
      localStorage.setItem('users', JSON.stringify(state.users));
    },
    Out(state){
      state.users = '';
      localStorage.removeItem('users');
      location.href = '/login'
    }
  },
  actions: {
    
  },
  modules: {
  },
})
